home *** CD-ROM | disk | FTP | other *** search
Wrap
<?xml version="1.0" encoding="EUC-KR"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX This file is generated from xml source: DO NOT EDIT XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> <title>mod_expires - Apache HTTP Server</title> <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> <link href="../images/favicon.ico" rel="shortcut icon" /></head> <body> <div id="page-header"> <p class="menu"><a href="../mod/">╕≡╡Γ</a> | <a href="../mod/directives.html">┴÷╜├╛ε╡Θ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">┐δ╛ε</a> | <a href="../sitemap.html">╗τ└╠╞«╕╩</a></p> <p class="apache">Apache HTTP Server Version 2.2</p> <img alt="" src="../images/feather.gif" /></div> <div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> <div id="path"> <a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">╕≡╡Γ</a></div> <div id="page-content"> <div id="preamble"><h1>╛╞╞──í ╕≡╡Γ mod_expires</h1> <div class="toplang"> <p><span>░í┤╔╟╤ ╛≡╛ε: </span><a href="../en/mod/mod_expires.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="../ja/mod/mod_expires.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | <a href="../ko/mod/mod_expires.html" title="Korean"> ko </a></p> </div> <table class="module"><tr><th><a href="module-dict.html#Description">╝│╕φ:</a></th><td>╗τ┐δ└┌░í ┴÷┴ñ╟╤ ▒Γ┴╪┐í ╡√╢≤ <code>Expires</code>┐═ <code>Cache-Control</code> HTTP ╟∞┤⌡╕ª ╗²╝║╟╤┤┘</td></tr> <tr><th><a href="module-dict.html#Status">╗≤┼┬:</a></th><td>Extension</td></tr> <tr><th><a href="module-dict.html#ModuleIdentifier">╕≡╡Γ╕φ:</a></th><td>expires_module</td></tr> <tr><th><a href="module-dict.html#SourceFile">╝╥╜║╞─└╧:</a></th><td>mod_expires.c</td></tr></table> <h3>┐Σ╛α</h3> <p>└╠ ╕≡╡Γ└║ ╝¡╣÷ └└┤Σ└╟ <code>Expires</code> HTTP ╟∞┤⌡┐═ <code>Cache-Control</code> HTTP ╟∞┤⌡└╟ <code>max-age</code> ┴÷╜├╛ε ╝│┴ñ└╗ ┴╢└²╟╤┤┘. ╕╕▒Γ└╧└╗ ╞─└╧└╠ ╕╢┴≈╕╖ ╝÷┴ñ╡╚ ╜├░ú ╚ñ└║ ┼¼╢≤└╠╛≡╞«░í ┴ó╝╙╟╤ ╜├░ú┐í ╗≤┤δ└√└╕╖╬ ╝│┴ñ╟╥ ╝÷ └╓┤┘.</p> <p>└╠ HTTP ╟∞┤⌡╡Θ└║ ┼¼╢≤└╠╛≡╞«┐í░╘ ╣«╝¡└╟ └»╚┐╝║░· ┴÷╝╙╝║└╗ ╛╦╖┴┴╪┤┘. └╠ ╜├░ú└╠ ╛╞┴≈ ┴÷│¬┴÷╛╩╛╥┤┘╕Θ, ╣«╝¡╕ª ─│╜¼┐í╝¡ ░í┴«┐═╡╡ ╡╚┤┘. ╕╕▒Γ└╧└╠ ┴÷│╡┤┘╕Θ ─│╜¼╡╚ ░═└╗ "╕╕╖ß╡╟░φ" └»╚┐╟╧┴÷ ╛╩┤┘░φ ░ú┴╓╟╧┐⌐, ╝╥╜║┐í╝¡ ╣«╝¡╕ª ╗⌡╖╬ ╛≥╛ε┐═╛▀ ╟╤┤┘.</p> <p><code class="directive"><a href="../mod/mod_headers.html#header">Header</a></code> ┴÷╜├╛ε╕ª ╗τ┐δ╟╧┐⌐ <code>max-age</code> ┐▄└╟ ┤┘╕Ñ <code>Cache-Control</code> ┴÷╜├╛ε(<a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9">RFC 2616, 14.9 └²</a> ┬ⁿ░φ)╕ª ╝÷┴ñ╟╥ ╝÷ └╓┤┘.</p> </div> <div id="quickview"><h3 class="directives">┴÷╜├╛ε╡Θ</h3> <ul id="toc"> <li><img alt="" src="../images/down.gif" /> <a href="#expiresactive">ExpiresActive</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#expiresbytype">ExpiresByType</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#expiresdefault">ExpiresDefault</a></li> </ul> <h3>┴╓┴ª</h3> <ul id="topics"> <li><img alt="" src="../images/down.gif" /> <a href="#AltSyn">┤┘╕Ñ │╗║╬ ╣«╣²</a></li> </ul></div> <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="section"> <h2><a name="AltSyn" id="AltSyn">┤┘╕Ñ │╗║╬ ╣«╣²</a></h2> <p><code class="directive"><a href="#expiresdefault">ExpiresDefault</a></code>┐═ <code class="directive"><a href="#expiresbytype">ExpiresByType</a></code> ┴÷╜├╛ε╕ª ┤⌡ └╨▒Γ ┴┴└║ ╟ⁿ╜─└╕╖╬ ▒Γ╝·╟╥ ╝÷ └╓┤┘:</p> <div class="example"><p><code> ExpiresDefault "<base> [plus] {<num> <type>}*"<br /> ExpiresByType type/encoding "<base> [plus] {<num> <type>}*" </code></p></div> <p><base>┤┬ ┤┘└╜┴▀ ╟╧│¬└╠┤┘:</p> <ul> <li><code>access</code></li> <li><code>now</code> ('<code>access</code>'┐═ ░░└╜)</li> <li><code>modification</code></li> </ul> <p><code>plus</code> ┼░┐÷╡σ┤┬ ╛°╛ε╡╡ ╡╚┤┘. <num>└║ [<code>atoi()</code>┐í ╗τ┐δ╟╥ ╝÷ └╓┤┬] ┴ñ╝÷░¬└╠┤┘. <type>└║ ┤┘└╜┴▀ ╟╧│¬└╠┤┘:</p> <ul> <li><code>years</code></li> <li><code>months</code></li> <li><code>weeks</code></li> <li><code>days</code></li> <li><code>hours</code></li> <li><code>minutes</code></li> <li><code>seconds</code></li> </ul> <p>┐╣╕ª ╡Θ╛ε, ┤┘└╜ ╕≡╡╬┤┬ ╣«╝¡░í ▒Γ║╗└√└╕╖╬ ┴ó╝╙╡╚┴÷ 1┤▐╚─┐í ╕╕▒Γ╡╚┤┘░φ ╝│┴ñ╟╤┤┘:</p> <div class="example"><p><code> ExpiresDefault "access plus 1 month"<br /> ExpiresDefault "access plus 4 weeks"<br /> ExpiresDefault "access plus 30 days" </code></p></div> <p>'<num> <type>' ▒╕╣«└╗ ╣▌║╣╟╪╝¡ ╗τ┐δ╟╧┐⌐ ╕╕▒Γ╜├░ú└╗ └┌╝╝╚≈ ╝│┴ñ╟╥ ╝÷ └╓┤┘:</p> <div class="example"><p><code> ExpiresByType text/html "access plus 1 month 15 days 2 hours"<br /> ExpiresByType image/gif "modification plus 5 hours 3 minutes" </code></p></div> <p>╕╕╛α ╝÷┴ñ╜├░ú(modification)└╗ ▒Γ┴╪└╕╖╬ ╕╕▒Γ╜├░ú└╗ ╝│┴ñ╟╧┤┬ ░µ┐∞ │╗┐δ└╗ ╡≡╜║┼⌐┐í └╓┤┬ ╞─└╧┐í╝¡ ░í┴«┐└┴÷ ╛╩┤┬┤┘╕Θ Expires ╟∞┤⌡╕ª ║┘└╠┴÷ <strong>╛╩┤┬┤┘</strong>. └╠ ░µ┐∞ │╗┐δ┐í ╝÷┴ñ╜├░ú└╠ ╛°▒Γ ╢º╣«└╠┤┘.</p> </div> <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="directive-section"><h2><a name="ExpiresActive" id="ExpiresActive">ExpiresActive</a> <a name="expiresactive" id="expiresactive">┴÷╜├╛ε</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">╝│╕φ:</a></th><td><code>Expires</code> ╟∞┤⌡╕ª ╗²╝║╟╤┤┘</td></tr> <tr><th><a href="directive-dict.html#Syntax">╣«╣²:</a></th><td><code>ExpiresActive On|Off</code></td></tr> <tr><th><a href="directive-dict.html#Context">╗τ┐δ└σ╝╥:</a></th><td>┴╓╝¡╣÷╝│┴ñ, ░í╗≤╚ú╜║╞«, directory, .htaccess</td></tr> <tr><th><a href="directive-dict.html#Override">Override ┐╔╝╟:</a></th><td>Indexes</td></tr> <tr><th><a href="directive-dict.html#Status">╗≤┼┬:</a></th><td>Extension</td></tr> <tr><th><a href="directive-dict.html#Module">╕≡╡Γ:</a></th><td>mod_expires</td></tr> </table> <p>└╠ ┴÷╜├╛ε┤┬ ╟╪┤τ ┐╡┐¬┐í ┤δ╟╪ (┴∩, <code>.htaccess</code> ╞─└╧┐í╝¡ ╗τ┐δ╟╤┤┘╕Θ ▒╫ ╡≡╖║┼Σ╕« ╛╞╖í┐í └╓┤┬ ╣«╝¡╡Θ╕╕ ╟╪┤τ╡╚┤┘.) <code>Expires</code>┐═ <code>Cache-Control</code> ╟∞┤⌡╕ª ╗²╝║╟╥┴÷ └»╣½╕ª ░ß┴ñ╟╤┤┘. (<code>.htaccess</code> ╞─└╧ ╡ε└╕╖╬ ┤⌡ ╟╧└º ┤▄░Φ┐í╝¡ ╝¡╣÷╝│┴ñ└╗ ║»░µ╟╧┴÷╛╩┤┬ ╟╤) <code>Off</code>└╠╕Θ ╟╪┤τ ┐╡┐¬┐í └╓┤┬ ╣«╝¡┐í └╠╡Θ ╟∞┤⌡╕ª ╗²╝║╟╧┴÷ ╛╩┤┬┤┘. <code>On</code>└╠╕Θ <code class="directive"><a href="#expiresbytype">ExpiresByType</a></code>░· <code class="directive"><a href="#expiresdefault">ExpiresDefault</a></code> ┴÷╜├╛ε╖╬ (<em>╟╪┤τ ╟╫╕±└╗ ┬ⁿ░φ╟╧╢≤</em>) ┴÷┴ñ╟╤ ▒╘─ó┐í ╡√╢≤ ╝¡║±╜║╟╧╖┴┤┬ ╣«╝¡┐í └╠ ╟∞┤⌡╡Θ└╗ ╗²╝║╟╤┤┘.</p> <p>└╠ ┴÷╜├╛ε░í <code>Expires</code>│¬ <code>Cache-Control</code> ╟∞┤⌡╕ª ║╕└σ╟╧┴÷┤┬ ╛╩┤┬┤┘. ▒╘─ó┐í ╟╪┤τ╟╧┴÷ ╛╩┤┘╕Θ ╕╢─í └╠ ┴÷╜├╛ε░í ╛°┤┬ ░═├│╖│ ╟∞┤⌡╕ª ╕╕╡Θ┴÷ ╛╩┤┬┤┘.</p> </div> <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="directive-section"><h2><a name="ExpiresByType" id="ExpiresByType">ExpiresByType</a> <a name="expiresbytype" id="expiresbytype">┴÷╜├╛ε</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">╝│╕φ:</a></th><td>MIME type└╕╖╬ <code>Expires</code> ╟∞┤⌡░¬└╗ ╝│┴ñ╟╤┤┘</td></tr> <tr><th><a href="directive-dict.html#Syntax">╣«╣²:</a></th><td><code>ExpiresByType <var>MIME-type</var> <var><code>seconds</var></code></td></tr> <tr><th><a href="directive-dict.html#Context">╗τ┐δ└σ╝╥:</a></th><td>┴╓╝¡╣÷╝│┴ñ, ░í╗≤╚ú╜║╞«, directory, .htaccess</td></tr> <tr><th><a href="directive-dict.html#Override">Override ┐╔╝╟:</a></th><td>Indexes</td></tr> <tr><th><a href="directive-dict.html#Status">╗≤┼┬:</a></th><td>Extension</td></tr> <tr><th><a href="directive-dict.html#Module">╕≡╡Γ:</a></th><td>mod_expires</td></tr> </table> <p>└╠ ┴÷╜├╛ε┤┬ ╞»┴ñ ┴╛╖∙└╟ (<em>┐í╕ª ╡Θ╛ε</em>, <code>text/html</code>) ╣«╝¡┐í ┤δ╟╤ <code>Expires</code> ╟∞┤⌡░¬░· <code>Cache-Control</code> ╟∞┤⌡└╟ <code>max-age</code> ┴÷╜├╛ε░¬└╗ ┴ñ└╟╟╤┤┘. ╡╬╣°┬░ ╛╞▒╘╕╒╞«┤┬ ╕╕▒Γ╜├░ú└╗ ░ß┴ñ╟╥╢º ▒Γ┴╪ ╜├░ú┐í ┤⌡╟╥ ├╩┤▄└º ░¬└╗ ┴÷┴ñ╟╤┤┘. <code>Cache-Control: max-age</code>┤┬ ╕╕▒Γ╜├░ú┐í╝¡ ┐Σ├╗╟╤ ╜├░ú└╗ ╗⌐╝¡ ░Φ╗Ω╟╧░φ, ░ß░·┤┬ ├╩┤▄└º╖╬ ╟Ñ╜├╟╤┤┘.</p> <p>▒Γ┴╪ ╜├░ú└║ ╞─└╧└╟ ├╓▒┘ ╝÷┴ñ╜├░ú ╚ñ└║ ┼¼╢≤└╠╛≡╞«░í ╣«╝¡┐í ┴ó▒┘╟╤ ╜├░ú└╠┤┘. └╠╢▓ ░═└╗ ╗τ┐δ╟╥┴÷┤┬ <code><var><code></var></code> ╟╩╡σ╖╬ ░ß┴ñ╟╪╛▀ ╟╤┤┘. <code>M</code>└║ ▒Γ┴╪ ╜├░ú└╕╖╬ ╞─└╧└╟ ├╓▒┘ ╝÷┴ñ╜├░ú└╗ ╗τ┐δ╟╧░φ, <code>A</code>┤┬ ┼¼╢≤└╠╛≡╞«└╟ ┴ó▒┘ ╜├░ú└╗ ╗τ┐δ╟╤┤┘.</p> <p>┬≈└╠┤┬ ╣╠╣ª╟╧┤┘. <code>M</code>└╗ ╗τ┐δ╟╧╕Θ ─│╜¼┐í └╓┤┬ ╕≡╡τ ║╣╗τ║╗└╠ ░░└║ ╜├░ú┐í ╕╕╖ß╡╚┤┘. ▒╫╖í╝¡ ╟╫╗≤ ░░└║ URL╖╬ ├ú╛╞║╝ ╝÷ └╓┤┬ ┴╓░ú└╧┴ñ ░░└║ ┐δ╡╡┐í ┴┴┤┘. <code>A</code>╕ª ╗τ┐δ╟╧╕Θ ║╣╗τ║╗└╟ ╕╕▒Γ╜├░ú└╠ ░ó░ó ┤┘╕ú┤┘. └╠┤┬ └┌┴╓ ╝÷┴ñ╡╟┴÷╛╩┤┬ ▒╫╕▓╞─└╧┐í, ╞»╚≈ ┐⌐╖» ╣«╝¡┐í╝¡ ░░└║ ▒╫╕▓└╗ ┬ⁿ┴╢╟╥╢º (<em>┐╣╕ª ╡Θ╛ε</em>, └╠╣╠┴÷┤┬ ╗≤┤δ└√└╕╖╬ ┬¬└║ ▒Γ░ú╡┐╛╚ ╣▌║╣╟╪╝¡ ┴ó▒┘╡╚┤┘), └»┐δ╟╧┤┘.</p> <div class="example"><h3>┐╣┴ª:</h3><p><code> # ╕╕▒Γ╟∞┤⌡╕ª ╗τ┐δ╟╤┤┘<br /> ExpiresActive On<br /> # ┼¼╢≤└╠╛≡╞« ─│╜¼└╟ GIF ▒╫╕▓└║ ╟╤ ┤▐╚─┐í ╕╕▒Γ╟╤┤┘<br /> ExpiresByType image/gif A2592000<br /> # HTML ╣«╝¡┤┬ ║»░µ╚─ └╧┴╓└╧░ú └»╚┐╟╧┤┘ ExpiresByType text/html M604800 </code></p></div> <p>└╠ ┴÷╜├╛ε┤┬ <code>ExpiresActive On</code>└╗ ╗τ┐δ╟╥╢º╕╕ └»╚┐╟╘└╗ ┴╓└╟╟╧╢≤. <code class="directive"><a href="#expiresdefault">ExpiresDefault</a></code> ┴÷╜├╛ε╕ª ╗τ┐δ╟╧┐⌐ ╞»┴ñ MIME type┐í ┤δ╟╪╝¡<em>╕╕</em> ╕╕▒Γ╜├░ú└╗ ╝│┴ñ╟╥ ╝÷ └╓┤┘.</p> <p>╛╒┐í╝¡ ╝│╕φ╟╤ <a href="#AltSyn">┤┘╕Ñ ╣«╣²</a>└╗ ╗τ┐δ╟╧┐⌐ ╕╕▒Γ╜├░ú└╗ ░Φ╗Ω╟╥ ╝÷╡╡ └╓┤┘.</p> </div> <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="directive-section"><h2><a name="ExpiresDefault" id="ExpiresDefault">ExpiresDefault</a> <a name="expiresdefault" id="expiresdefault">┴÷╜├╛ε</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">╝│╕φ:</a></th><td>╕╕▒Γ╜├░ú└╗ ░Φ╗Ω╟╧┤┬ ▒Γ║╗ ╛╦░φ╕«┴≥</td></tr> <tr><th><a href="directive-dict.html#Syntax">╣«╣²:</a></th><td><code>ExpiresDefault <var><code>seconds</var></code></td></tr> <tr><th><a href="directive-dict.html#Context">╗τ┐δ└σ╝╥:</a></th><td>┴╓╝¡╣÷╝│┴ñ, ░í╗≤╚ú╜║╞«, directory, .htaccess</td></tr> <tr><th><a href="directive-dict.html#Override">Override ┐╔╝╟:</a></th><td>Indexes</td></tr> <tr><th><a href="directive-dict.html#Status">╗≤┼┬:</a></th><td>Extension</td></tr> <tr><th><a href="directive-dict.html#Module">╕≡╡Γ:</a></th><td>mod_expires</td></tr> </table> <p>└╠ ┴÷╜├╛ε┤┬ ╟╪┤τ ┐╡┐¬┐í └╓┤┬ ╕≡╡τ ╣«╝¡└╟ ╕╕▒Γ╜├░ú└╗ ░Φ╗Ω╟╧┤┬ ▒Γ║╗ ╛╦░φ╕«┴≥└╗ ┴÷┴ñ╟╤┤┘. <code class="directive"><a href="#expiresbytype">ExpiresByType</a></code> ┴÷╜├╛ε╕ª ╗τ┐δ╟╧┐⌐ ┴╛╖∙║░╖╬ ╝│┴ñ╟╥ ╝÷ └╓┤┘. ╛╞▒╘╕╒╞« ╣«╣²┐í ┤δ╟╤ └┌╝╝╟╤ ╝│╕φ└║ ▒╫ ┴÷╜├╛ε┐═ <a href="#AltSyn">┤┘╕Ñ ╣«╣²</a>└╗ ┬ⁿ░φ╟╧╢≤.</p> </div> </div> <div class="bottomlang"> <p><span>░í┤╔╟╤ ╛≡╛ε: </span><a href="../en/mod/mod_expires.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="../ja/mod/mod_expires.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | <a href="../ko/mod/mod_expires.html" title="Korean"> ko </a></p> </div><div id="footer"> <p class="apache">Copyright 1995-2006 The Apache Software Foundation or its licensors, as applicable.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> <p class="menu"><a href="../mod/">╕≡╡Γ</a> | <a href="../mod/directives.html">┴÷╜├╛ε╡Θ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">┐δ╛ε</a> | <a href="../sitemap.html">╗τ└╠╞«╕╩</a></p></div> </body></html>